﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTR.News.AdminDAL;
using GTR.News.AdminModel;
using System.Data;

namespace GTR.News.AdminBLL
{
    public class NewsBLL
    {
        NewsDAL dal = new NewsDAL();
        /// <summary>
        /// 添加新闻
        /// </summary>
        /// <param name="n"></param>
        /// <returns></returns>
        public int newADD(GTR.News.AdminModel.News n)
        {
            return dal.newADD(n);
        }

        /// <summary>
        /// 新闻显示
        /// </summary>
        /// <returns></returns>
        public DataTable Newsxian()
        {
            return dal.Newsxian();
        }
        /// <summary>
        /// 新闻删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Newsdelete(int id)
        {
            return dal.Newsdelete(id);
        }



    }
}
